﻿using System;

namespace MessagePack
{
	// Token: 0x02000005 RID: 5
	[AttributeUsage(AttributeTargets.Interface, AllowMultiple = true, Inherited = false)]
	public class UnionAttribute : Attribute
	{
		// Token: 0x0600000B RID: 11 RVA: 0x000023AF File Offset: 0x000007AF
		public UnionAttribute(int key, Type subType)
		{
			this.Key = key;
			this.SubType = subType;
		}

		// Token: 0x17000004 RID: 4
		// (get) Token: 0x0600000C RID: 12 RVA: 0x000023C5 File Offset: 0x000007C5
		// (set) Token: 0x0600000D RID: 13 RVA: 0x000023CD File Offset: 0x000007CD
		public int Key { get; private set; }

		// Token: 0x17000005 RID: 5
		// (get) Token: 0x0600000E RID: 14 RVA: 0x000023D6 File Offset: 0x000007D6
		// (set) Token: 0x0600000F RID: 15 RVA: 0x000023DE File Offset: 0x000007DE
		public Type SubType { get; private set; }
	}
}
